package data;

/**
 * this class checks if a string is a double
 * @author Nikolai Straessle
 *
 */
public class CheckDouble {
	
	/**
	 * Returns a boolean 
	 * 		if true the inputString is a double, if false the inputString is not a double
	 * @param inputString
	 * @return
	 * 		boolean
	 */
	public boolean check(String inputString){
		boolean retVal = true;
		try{
			Double.parseDouble(inputString);
		}catch(Exception e){
			e.printStackTrace();
			retVal = false;
		}
		return retVal;
	}

}
